@echo off

echo Start Publishing . . .

MsBuild.exe LifeTree.Publish.proj

DEL C:\Temp\LifeTree\Web.Debug.config || GOTO ERROR
DEL C:\Temp\LifeTree\Web.Release.config || GOTO ERROR
DEL C:\Temp\LifeTree\Web1.config || GOTO ERROR

MD C:\Temp\LifeTree\Database
COPY Database\LifeTree.bak C:\Temp\LifeTree\Database\LifeTree.bak || GOTO ERROR



echo Success!!!

GOTO END

:ERROR
color C
echo    ------------------------------- ERROR !!!!! -------------------------------
:END

pause 
